<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <!-- v-for循环结构：v-for="自定义变量名 in data区的key"
        取值方法：自定义变量名.对象data区得key的 对象的key值 -->
    <div id="app">
        {{msg}}
    </div>
    <script src="vue.min.js"></script>
    <script>
        new Vue({
            el: '#app',
            data: {
                msg: 'hello'
            },
            created() {
                // debugger可以在页面加载过程中进行 端点调试
                debugger
                console.log('created...')
            },
            mounted() {
                debugger
                console.log('mounted...')
            }
        })
    </script>
</body>

</html>